package org.darkforest.common.services;

import org.darkforest.model.Member;
import org.darkforest.model.MemberWithBLOBs;
import org.darkforest.vo.MemberAccount;
import org.darkforest.vo.MemberProxyVo;
import org.darkforest.vo.MemberSearchBean;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2015/12/18.
 */
public interface MemberService {

    int deleteByPrimaryKey(Integer memberId);

    int insert(MemberWithBLOBs record);

    int insertSelective(MemberWithBLOBs record);

    MemberWithBLOBs selectByPrimaryKey(Integer memberId);

    int updateByPrimaryKeySelective(MemberWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(MemberWithBLOBs record);

    int updateByPrimaryKey(Member record);

    Member selectByUserName(String userName);

    List<Member> getMemberInfoByCond(Member member);

    List<Member> getMemberPageList(MemberSearchBean param);

    Member findMemberInfoByPrimaryKey(String recommendId);

    int updateMemberPoints(Member member);

    int updateMemberType(Member member);

    Integer getMemberCount(Integer nearTime);

    Member getMemberById(Integer memberId);

    MemberProxyVo getMemberProxyInfo(Integer memberId);

    Member getMemberByWxId(String wxOpenId);

    int updateMemberBaseInfo(Member member);

    public Integer getUnderMemberCnt(Integer memberId);

    List<Member> getMemberByCond(Member member);

    int updateMemberAccount(Member member);

    MemberAccount getMemberAccount(Integer member);

    List<Map<String,Object>> findAddMember(MemberSearchBean memberSearchBean);
    /***
     * 获取用户等级
     * @return
     */
    int getMemberLevel(BigDecimal careValue);
}
